<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>政府公文知识库管理系统</title>
  <style>
    /* 全局样式 */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: "Microsoft YaHei", sans-serif;
    }

    body {
      background-color: #f0f2f5;
      color: #333;
    }

    /* 顶部导航栏 */
    .header {
      height: 60px;
      background: linear-gradient(135deg, #1a5fb4, #0d47a1);
      color: white;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 20px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .logo {
      display: flex;
      align-items: center;
    }

    .logo img {
      height: 36px;
      margin-right: 10px;
    }

    .user-info {
      display: flex;
      align-items: center;
    }

    .user-avatar {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background-color: #fff;
      color: #1a5fb4;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-left: 15px;
      font-weight: bold;
      cursor: pointer;
    }

    /* 主布局 */
    .container {
      display: flex;
      height: calc(100vh - 60px);
    }

    /* 左侧菜单 */
    .sidebar {
      width: 220px;
      background-color: #fff;
      border-right: 1px solid #e8e8e8;
      padding: 15px 0;
      overflow-y: auto;
    }

    .menu-item {
      padding: 12px 20px;
      cursor: pointer;
      transition: all 0.3s;
      display: flex;
      align-items: center;
    }

    .menu-item:hover {
      background-color: #f0f7ff;
      color: #1a5fb4;
    }

    .menu-item.active {
      background-color: #e6f0ff;
      color: #1a5fb4;
      border-right: 3px solid #1a5fb4;
    }

    .menu-item i {
      margin-right: 10px;
      font-size: 16px;
    }

    .menu-group {
      margin-bottom: 15px;
    }

    .menu-group-title {
      padding: 8px 20px;
      color: #666;
      font-size: 12px;
      text-transform: uppercase;
    }

    /* 主内容区 */
    .main-content {
      flex: 1;
      padding: 12px 20px;
      overflow-y: auto;
    }

    .page-title {
      font-size: 20px;
      margin-bottom: 20px;
      color: #333;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    /* 加载动画 */
    .loading {
      display: flex;
      justify-content: center;
      align-items: center;
      height: 200px;
    }

    .spinner {
      width: 40px;
      height: 40px;
      border: 4px solid #f3f3f3;
      border-top: 4px solid #1a5fb4;
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }

    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    /* 响应式设计 */
    @media (max-width: 768px) {
      .container {
        flex-direction: column;
      }

      .sidebar {
        width: 100%;
        height: auto;
      }
    }
  </style>
  <!-- 使用Font Awesome图标 -->
  <!--<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">-->
  <link rel="stylesheet" href="fontawesome-free-6.7.2-web/css/all.min.css">
  <script src="js/index.js" type="module"></script>
  <!-- 在<body>末尾 -->
  <!--<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>-->
  <script src="js/chart.js"></script>
  <!--<script src="https://cdn.jsdelivr.net/npm/wordcloud@1.2.2/src/wordcloud2.js" ></script>-->
  <script src="js/wordcloud2.js"></script>
  <!--<script src="https://cdn.jsdelivr.net/npm/moment@2.29.1/moment.min.js"></script>-->
  <script src="js/moment.js"></script>
</head>
<body>
<!-- 顶部导航栏 -->
<div class="header">
  <div class="logo">
    <img src="" alt="政府徽标">
    <h1>海淀区政务办公系统智能应用平台</h1>
  </div>
  <div class="user-info">
    <span>管理员</span>
    <div class="user-avatar">A</div>
  </div>
</div>

<!-- 主布局 -->
<div class="container">
  <!-- 左侧菜单 -->
  <div class="sidebar">
    <div class="menu-group">
      <div class="menu-group-title">主导航</div>
      <div class="menu-item active" data-page="pages/home.html" data-id="home">
        <i class="fas fa-home"></i>
        <span>首页</span>
      </div>
      <div class="menu-item" data-page="pages/knowledge.html" data-id="knowledge">
        <i class="fas fa-book"></i>
        <span>知识库管理</span>
      </div>
      <div class="menu-item" data-page="pages/ai.html" data-id="ai">
        <i class="fas fa-robot"></i>
        <span>AI应用管理</span>
      </div>
    </div>

    <div class="menu-group">
      <div class="menu-group-title">系统管理</div>
      <div class="menu-item" data-page="pages/users.html" data-id="users">
        <i class="fas fa-users"></i>
        <span>用户管理</span>
      </div>
      <div class="menu-item" data-page="pages/settings.html" data-id="settings">
        <i class="fas fa-cog"></i>
        <span>系统设置</span>
      </div>
    </div>
  </div>

  <!-- 主内容区 -->
  <div class="main-content" id="main-content">
    <div class="page-title">
      <span id="content-title">系统首页</span>
    </div>
    <div id="content-container">
      <!-- 默认加载首页内容 -->
      <div class="loading">
        <div class="spinner"></div>
      </div>
    </div>
  </div>
</div>
</body>
</html>